Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 3b8d1f0758564c31ae8590aa0357b7a991a49042


Parents : 55e2260
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-14T00:13:48-05:00

fix(unify-backend): remove leading './' from file paths in unify script to ensure correct file copying

Changes

1 files changed, 2 insertions(+), 1 deletions(-)


Diff

diff --git a/scripts/unify-backend-plain-files.sh b/scripts/unify-backend-plain-files.sh
index 2d6b7885..8f0a18a1 100755
--- a/scripts/unify-backend-plain-files.sh
+++ b/scripts/unify-backend-plain-files.sh
@@ -21,6 +21,7 @@ fi
unified=0
while IFS= read -r -d '' rel; do
+ rel="${rel#./}"
arm64_file="$ARM64_DIR/$rel"
x64_file="$X64_DIR/$rel"
@@ -38,7 +39,7 @@ while IFS= read -r -d '' rel; do
cp "$arm64_file" "$x64_file"
echo " unified: $rel"
unified=$((unified + 1))
-done < <(cd "$ARM64_DIR" && find . -type f -print0 | sed -z 's|^\./||')
+done < <(cd "$ARM64_DIR" && find . -type f -print0)
if [[ $unified -gt 0 ]]; then
echo "unify-backend-plain-files: copied $unified file(s) from arm64 → x64"


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────